portal Michała Hanćkowiaka
Begin main content
#!/usr/bin/python

import socket              # Import socket module

s = socket.socket()        # Create a socket object
host = socket.gethostname() # Get local machine name
port = 12345                # Reserve a port for your service.

s.connect((host, port))
print s.recv(1024)
s.close                    # Close the socket when done

uwaga: portal używa ciasteczek tylko do obsługi tzw. sesji...